/*
 * globals.h
 *
 *  Created on: Feb 14, 2012
 *      Author: Michael Ziminsky
 */

#ifndef GLOBALS_H_
#define GLOBALS_H_

#define DIMENTIONS 3

typedef float scalar;
typedef unsigned char uchar;
typedef unsigned int uint;

typedef arma::Col<scalar>::fixed<2> 	vector2;
typedef arma::Col<scalar>::fixed<3>     vector3;
typedef arma::Mat<scalar>               matrix;

matrix::fixed<3, 3> genRotation(scalar angle);
scalar magnitude(const vector3 &);
void normalize(vector3 &);
void scale(vector3&, scalar);

#endif /* GLOBALS_H_ */
